from aliyunsdkcore.client import AcsClient
from aliyunsdkrds.request.v20140815 import CreateDBInstanceRequest
# 创建 AcsClient 实例
client = AcsClient(
"<your-access-key-id>",
"<your-access-key-secret>",
"<your-region-id>"
)

request = CreateDBInstanceRequest.CreateDBInstanceRequest()
request.set_Engine("MySQL")
request.set_EngineVersion("5.7")
request.set_DBInstanceClass("mysql.n1.micro.1")
request.set_DBInstanceStorage("20")
request.set_DBInstanceNetType("Intranet")
request.set_SecurityIPList("0.0.0.0/0")
request.set_PayType("Postpaid")
request.set_DBInstanceDescription("MyRds")
request.set_ClientToken("<uuid>")
response = client.do_action_with_exception(request)
print(response)
